package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.entity.FarmProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FarmProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FarmProduct record);

    int insertSelective(FarmProduct record);

    FarmProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FarmProduct record);

    int updateByPrimaryKey(FarmProduct record);

    List<FarmProduct> findAllPage(PageReq req);

    List<FarmProduct> findAllByIds(@Param("ids") List<Long> ids);

    int updateDeletedById(@Param("updatedDeleted")Byte updatedDeleted,@Param("id")Long id);


}